#ifndef _DRV_I2C_STM32F4XX_H_
#define _DRV_I2C_STM32F4XX_H_

#include "hal_i2c.h"
#include "drv_gpio_stm32f4xx.h"


#define STM32F4XX_I2C1_SCL_PIN1  {LL_GPIO_PIN_8, GPIOB,0,LL_AHB1_GRP1_PERIPH_GPIOB}
#define STM32F4XX_I2C1_SDA_PIN1  {LL_GPIO_PIN_9, GPIOB,0,LL_AHB1_GRP1_PERIPH_GPIOB}

struct stm32f4xx_i2c_adapter{
	struct stm32f4xx_gpio_s 	*sda;
	struct stm32f4xx_gpio_s 	*scl;
	uint32_t delay_num;
};

int stm32f4xx_i2c_register(int bus_id,struct hal_i2c_adapter_s *adapter, struct stm32f4xx_i2c_adapter *i2c);
	
#endif
